<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html:html locale="true">
<head>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
<title></title>
<link href="console.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
.even {
	background:	#eee;
}

.odd {

}
</style>
<link href="../console.css" rel="stylesheet" type="text/css">
</head>

<body>
<jsp:include page="/title.jsp" flush="true"/>

	<p class="lnkhead2"><bean:message key="menu.orgManagers"/>&gt;<bean:write name="domain"  filter="true"/></p>

<table width="500" border="0" cellpadding="3" bordercolor="#B0CADF" cellspacing="1">
	<tr >
		<td class="txthead1"><bean:message key="org.updateUserInfor"/></td>
	</tr>
			<form action="org.do?act=updateUserConfirm" method="post" name="inforform">		
		<tr  class="txtnormal2">			
			<td><bean:message key="org.userId"/>
				</td><td>
				<bean:write  name="user" property="id"/>
				<input type="hidden" name="id"  value="<bean:write  name='user' property='id'/>"/>
				
			</td>
			</tr>
			<tr  class="txtnormal2">			
					
				<td><bean:message key="org.userName"/></td><td>
				
				<input type="text" name="userName"  value="<bean:write  name='user' property='name'/>" size="16"/>
				
			</td>
			</tr>
			<tr  class="txtnormal2">			
			
			<td><bean:message key="org.email"/></td><td>
				
				<input type="text" name="email"  value="<bean:write  name='user' property='email'/>" size="26"/>
				</td>
	</tr>
			<tr  class="txtnormal2">
			<td><bean:message key="org.tel"/></td><td>
				
				<input type="text" name="tel" value="<bean:write  name='user' property='tel'/>" size="16"/>
				
			</td>
			</tr>
			<tr  class="txtnormal2">			
			
				<td><bean:message key="org.mobile"/></td><td>
				
				<input type="text" name="mobile" value="<bean:write  name='user' property='mobile'/>" size="16"/>
				
			</td>
			</tr>
			<tr  class="txtnormal2">		
				<td><bean:message key="org.attr1"/></td><td>
				<input type="text" name="attr1" value="<bean:write  name='user' property='attr1'/>" size="16" maxlength="36"/>
			</td>
			</tr>
			<tr  class="txtnormal2">		
				<td><bean:message key="org.attr2"/></td><td>
				<input type="text" name="attr2" value="<bean:write  name='user' property='attr2'/>" size="16" maxlength="36"/>
			</td>
			</tr>
			<tr  class="txtnormal2">		
				<td><bean:message key="org.attr3"/></td><td>
				<input type="text" name="attr3" value="<bean:write  name='user' property='attr3'/>" size="16" maxlength="36"/>
			</td>
			</tr>
			<tr  class="txtnormal2">		
				<td><bean:message key="org.attr4"/></td><td>
				<input type="text" name="attr4" value="<bean:write  name='user' property='attr4'/>" size="16" maxlength="36"/>
			</td>
			</tr>
			<tr  class="txtnormal2">		
				<td><bean:message key="org.attr5"/></td><td>
				<input type="text" name="attr5" value="<bean:write  name='user' property='attr5'/>" size="16" maxlength="36"/>
			</td>
			</tr>
			<tr  class="txtnormal2">			
			<td></td><td>
			<input type="button" name="Submit3" value='<bean:message key="button.ok"/>' onclick="javascript:updateUser()">
				<input type="hidden" name="domain" value="<bean:write name='domain'/>"/>
			</td>
	</tr>
	
	
	<tr >
		
		
		
		<td class="txthead1"><bean:message key="org.updatePassword"/></td>
		
		
		
	</tr>
	
	
			<form action="org.do?act=updatePassword" method="post" name="passwordform">		
		<tr  class="txtnormal2">			

			<td><bean:message key="org.oldPassword"/></td><td>
				<input type="hidden" name="id"  value="<bean:write  name='user' property='id'/>"/>
				<input type="password" size="15" name="oldpassword">
				
			</td>
			</tr>
			<tr  class="txtnormal2">			
				<td><bean:message key="org.newPassword"/></td><td>
				
				<input type="password" size="15" name="newpassword">
				
			</td>
			</tr>
			<tr  class="txtnormal2">			
				<td><bean:message key="org.confirmNewPassword"/>:</td><td>
				
				<input type="password" size="15" name="newpassword2">
				</td>
				</tr>
			<tr  class="txtnormal2">			
			<td></td><td>
			<input type="button" name="Submit3" value='<bean:message key="button.ok"/>' onclick="javascript:updatePassword()">
				<input type="hidden" name="domain" value="<bean:write name='domain'/>"/>
		</td>
				
	</tr>
	
</table>
<script language="JavaScript">		
function updateUser()
	{
	var frm = document.forms["inforform"];
		if(frm.elements["userName"].value=="")
	{ alert("<bean:message key='org.needUserName'/>");
		return;
	}
	frm.submit();
	};
	
	function updatePassword()
	{
	var frm = document.forms["passwordform"];
	if(frm.elements["newpassword"].value!=frm.elements["newpassword2"].value)
		{ alert("<bean:message key='org.newPasswordError'/>");
		return;
		}
	frm.submit();
	};
</script>

<%@ include file="/bottom.jsp" %>
</body>
</html:html>



